package com.guigu.tms.oms.service;

import com.guigu.tms.commons.order.entity.Rule;
import com.guigu.tms.commons.order.entity.fact.AddressRule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zwj
 * @since 2022-09-27
 */
public interface IRuleService extends IService<Rule> {
    BigDecimal rule(AddressRule rule);

    /**
     * 查询所有规则
     * @return
     */
    List<Rule> loadRules();

    /**
     * 重新加载规则
     * @return
     */
    boolean reload();
}
